The endoscopic retrograde cholangiopancreatography (ERCP) with immediate stone extraction attempts.